import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
const TenantKey = 'tenant_id'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}


export function getTenantId() {
  //return localStorage.getItem(TenantKey)
  return Cookies.get(TenantKey)
}

export function setTenantId(tenantId) {
  //localStorage.setItem(TenantKey, tenantId)
  return Cookies.set(TenantKey, tenantId)
}
export function removeTenantId() {
  return Cookies.remove(TenantKey)
}
